function underLineText(element) {
	element.style.textDecoration = "underline";
	element.style.fontWeight = "bold"; 
}

function removeUnderLineFromText(element) {
	element.style.textDecoration = "none";
	element.style.fontWeight = "normal";
}

function calculateHeight(element) {
	console.log(element.height)
}

function calculateWidth(element) {

}

//toggles whole menu-tree
function toggleWholeTree() {
	var elements = document.getElementsByClassName("tree-toggler");
	for(var i = 0; i < elements.length; ++i) {
		$(elements[i]).parent().children('ul.tree').toggle(0);
	}
}